home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / gzip 1.2.2 / cextras-1.0 / Makefile < prev    next >
Encoding:
Makefile  |  1993-07-11  |  2.6 KB  |  88 lines  |  [TEXT/MPS ]

  1. #———————————————————————————————————————————————————————————————————————————
  2. #
  3. #    Makefile for Nifty C Libraries
  4. #
  5. #    Copyright (c) 1993 Anthony C. Ard.
  6. #
  7. #    This program is free software; you can redistribute it and/or
  8. #    modifiy it under the terms of the GNU General Public License
  9. #    as published by the Free Software Foundation; either version 2
  10. #    of the License, or (at your option) any later version.
  11. #    
  12. #    This program is distributed in the hope that it will be useful,
  13. #    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. #    GNU General Public License for more details.
  16. #    
  17. #    You should have received a copy of the GNU General Public License
  18. #    along with this program; if not, write to the Free Software
  19. #    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. #
  21. #———————————————————————————————————————————————————————————————————————————
  22.  
  23. libdir =        {CLibraries}
  24. includedir =    {CIncludes}
  25.  
  26. SymOptions =    #-sym on
  27. AOptions =        -case obj {SymOptions}
  28. ANSIC =            -r -d __STDC__
  29. COptions =        -mc68020 -opt full {ANSIC} {SymOptions}
  30. LibOptions =    {SymOptions}
  31.  
  32. Headers =    alloca.h stat.h dirent.h getopt.h varargs.h toolserver.h ∂
  33.             String-extras.h StdLib-extras.h sys_types.h
  34.  
  35. Objects =    alloca.a.o dirent.c.o stat.c.o uc-random.c.o getopt.c.o ∂
  36.             bsd-strings.c.o gcvt.c.o dup2.c.o strcase.c.o isatty.c.o ∂
  37.             strdup.c.o toolserver.c.o
  38.  
  39. LibObjs =    "{CLibraries}"Math.o ∂
  40.             "{CLibraries}"CSaneLib.o ∂
  41.             "{CLibraries}"Complex.o ∂
  42.             "{CLibraries}"StdCLib.o ∂
  43.             "{Libraries}"Stubs.o ∂
  44.             "{Libraries}"ToolLibs.o ∂
  45.             "{Libraries}"Runtime.o ∂
  46.             "{Libraries}"Interface.o
  47.  
  48. #———————————————————————————————————————————————————————————————————————————
  49. # Main build rules
  50. #———————————————————————————————————————————————————————————————————————————
  51.  
  52. all    ƒ    cextras.o
  53.  
  54. cextras.o    ƒ    {Objects}
  55.     Lib -o {Targ} -sn Main=cextras {LibOptions} {Objects}
  56.  
  57. alloca.a.o    ƒƒ    Makefile
  58. bsd-strings.c.o    ƒƒ    Makefile
  59. dirent.c.o    ƒƒ    dirent.h Makefile
  60. dup2.c.o    ƒƒ    Makefile
  61. gcvt.c.o    ƒƒ    Makefile
  62. getopt.c.o    ƒƒ    getopt.c getopt.h Makefile
  63.     C getopt.c -o {Targ} {COptions} -d STDC_HEADERS
  64. isatty.c.o    ƒƒ    Makefile
  65. stat.c.o    ƒƒ    stat.h Makefile
  66. strcase.c.o    ƒƒ    Makefile
  67. strdup.c.o    ƒƒ    Makefile
  68. toolserver.c.o    ƒƒ    Makefile
  69. uc-random.c.o    ƒƒ    Makefile
  70.  
  71. #———————————————————————————————————————————————————————————————————————————
  72. # Other build rules
  73. #———————————————————————————————————————————————————————————————————————————
  74.  
  75. install    ƒ all
  76.     Set Exit 0
  77. # install libraries
  78.     Move -y cextras.o "{libdir}"
  79. # install header files
  80.     Duplicate -y {Headers} "{includedir}"
  81.     Set Exit 1
  82.  
  83. clean    ƒ
  84.     Set Exit 0
  85.     Delete ≈.o
  86.     Delete ≈.SYM
  87.     Set Exit 1
  88.